package com.building.service;

import java.util.List;

import com.building.common.R;
import com.building.entity.ShoppingOrderReceivingInformation;
import com.baomidou.mybatisplus.extension.service.IService;
/**
@author yinjiahui
@create 2021-04-11 17:11
*/
public interface ShoppingOrderReceivingInformationService extends IService<ShoppingOrderReceivingInformation>{


    int updateBatch(List<ShoppingOrderReceivingInformation> list);

    int updateBatchSelective(List<ShoppingOrderReceivingInformation> list);

    int batchInsert(List<ShoppingOrderReceivingInformation> list);

    int insertOrUpdate(ShoppingOrderReceivingInformation record);

    int insertOrUpdateSelective(ShoppingOrderReceivingInformation record);

    /**
     * 根据用户id查询收货地址
     *
     * @param userId
     * @return
     */
    List<ShoppingOrderReceivingInformation> selectShoppingOrderReceivingInformationController(Integer userId);

    /**
     * 新增或修改收货地址
     *
     * @param shoppingOrderReceivingInformation
     * @return
     */
    R insertOrUpdateShoppingOrderReceivingInformationController(ShoppingOrderReceivingInformation shoppingOrderReceivingInformation);

    /**
     * 根据收货地址id和用户id删除收货地址
     *
     * @param shoppingOrderReceivingInformationId
     * @param userId
     * @return
     */
    void deleteShoppingOrderReceivingInformationControllerByShoppingOrderReceivingInformationIdAndUserId(Integer shoppingOrderReceivingInformationId, Integer userId);
    }
